package com.ecarx.module_vehicle.signal.Model;

public class BaseBean {

    /**
     * WELCOME_LIGHT_MODE_1
     */
    String name;
    /**
     * int WELCOME_LIGHT_MODE_1 = 721617409;
     */
    String adaptId;

    /**
     * 为空，则需要通过adaptId去转换
     */
    String aospId;

    /**
     * 例：MODE_1,用于UI展示
     */
    String shortName;


    public String getName() {
        return name;
    }

    public String getAdaptId() {
        return adaptId;
    }

    public String getAospId() {
        return aospId;
    }

    public String getShortName() {
        return shortName;
    }

    public int getAospInt() {
        if (hasAospId()) {
            return Integer.parseInt(aospId);
        } else {
            return 0;
        }
    }

    public boolean hasAospId() {
        return aospId != null && aospId.length() > 0;
    }

    public void setAospId(String aospId) {
        this.aospId = aospId;
    }
}
